package com.most.security;

import org.apache.shiro.authc.AuthenticationToken;

public class StatelessAuthToken implements AuthenticationToken {
  private static final long serialVersionUID = -2827334463469969309L;
  
  private String encryptedToken;
  
  public String getEncryptedToken() {
    return this.encryptedToken;
  }
  
  public void setEncryptedToken(String encryptedToken) {
    this.encryptedToken = encryptedToken;
  }

  @Override
  public Object getPrincipal() {
    return getEncryptedToken();
  }

  @Override
  public Object getCredentials() {
    return getEncryptedToken();
  }
}